-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ha(dm): support store task config in Etcd #3620
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #3620 +/- ##
================================================
+ Coverage 57.3452% 57.7761% +0.4309%
================================================
Files 460 467 +7
Lines 54927 55632 +705
================================================
+ Hits 31498 32142 +644
- Misses 20180 20193 +13
- Partials 3249 3297 +48 |
could you explain what's a task config template? for example it's constant for each version or is uploaded by web tier? |
add more comments in pingcap/ticdc@c7c86c6 , is this explanation enough? |
I still not understand what's a task config template. your comment doesn't answer "it's constant for each version or is uploaded by web tier?" and it is created/updated/deleted when? the content is related to a specific DM version or user? |
These sections don't quite fit into the comments of the code, so I'll answer you directly here
|
I remember it should be renamed to task config instead of task config template, so it's WIP now? |
renamed in pingcap/ticdc@c0131e6 ptal 🧡 |
dm/pkg/terror/error_list.go
Outdated
@@ -897,6 +899,8 @@ var ( | |||
"config '%s' regex pattern '%s' invalid, reason: %s", "Please check if params is correctly in the configuration file.") | |||
ErrConfigOnlineDDLMistakeRegex = New(codeConfigOnlineDDLMistakeRegex, ClassConfig, ScopeInternal, LevelHigh, | |||
"online ddl sql '%s' invalid, table %s fail to match '%s' online ddl regex", "Please update your `shadow-table-rules` or `trash-table-rules` in the configuration file.") | |||
ErrOpenAPITaskConfigExists = New(codeConfigOpenAPITaskConfigExists, ClassConfig, ScopeInternal, LevelLow, "the openapi task config for '%s' already exists", "If you want to override it, pleaset use the overwite flag.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ErrOpenAPITaskConfigExists = New(codeConfigOpenAPITaskConfigExists, ClassConfig, ScopeInternal, LevelLow, "the openapi task config for '%s' already exists", "If you want to override it, pleaset use the overwite flag.") | |
ErrOpenAPITaskConfigExists = New(codeConfigOpenAPITaskConfigExists, ClassConfig, ScopeInternal, LevelLow, "the openapi task config for '%s' already exists", "If you want to override it, pleaset use the overwite flag.") |
and check typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ehco1996 pleaset -> please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this sentences is genereaed by github copilot and my ide plugin does not check for syntax errors 😂
dm/pkg/terror/error_list.go
Outdated
@@ -897,6 +899,8 @@ var ( | |||
"config '%s' regex pattern '%s' invalid, reason: %s", "Please check if params is correctly in the configuration file.") | |||
ErrConfigOnlineDDLMistakeRegex = New(codeConfigOnlineDDLMistakeRegex, ClassConfig, ScopeInternal, LevelHigh, | |||
"online ddl sql '%s' invalid, table %s fail to match '%s' online ddl regex", "Please update your `shadow-table-rules` or `trash-table-rules` in the configuration file.") | |||
ErrOpenAPITaskConfigExists = New(codeConfigOpenAPITaskConfigExists, ClassConfig, ScopeInternal, LevelLow, "the openapi task config for '%s' already exists", "If you want to override it, pleaset use the overwite flag.") | |||
ErrOpenAPITaskConfigNotExists = New(codeConfigOpenAPITaskConfigNotExists, ClassConfig, ScopeInternal, LevelLow, "the openapi task config for '%s' not exists", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ErrOpenAPITaskConfigNotExists = New(codeConfigOpenAPITaskConfigNotExists, ClassConfig, ScopeInternal, LevelLow, "the openapi task config for '%s' not exists", "") | |
ErrOpenAPITaskConfigNotExists = New(codeConfigOpenAPITaskConfigNotExists, ClassConfig, ScopeInternal, LevelLow, "the openapi task config for '%s' does not exist", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ehco1996 exists -> exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry fixed in pingcap/ticdc@0f81b94 and pingcap/ticdc@385e8ad
could you please take another look for this pr ? thanks 🧡🧡🧡 |
could you please take another look for this pr ? thanks 🧡🧡🧡 /cc @okJiang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest lgtm
Co-authored-by: okJiang <[email protected]>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: f9a4026
|
/run-integration-test |
@Ehco1996: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/run-all-tests |
What problem does this PR solve?
subtask of https://github.com/pingcap/ticdc/issues/3583
What is changed and how it works?
use a new key
TaskConfigTemplateKeyAdapter
to storeopenapi.Task
in etcdCheck List
Tests
Code changes
Side effects
Related changes
Release note